package org.goyo.main.services.pur;

import java.util.List;

import org.goyo.common.exception.DBException;
import org.goyo.common.exception.ServiceException;
import org.goyo.common.utils.Pager;
import org.goyo.main.domain.entity.pur.PurOrder;
import org.goyo.main.domain.entity.pur.PurOrderEntry;
import org.goyo.main.domain.entity.sale.SaleOrderEntry;
import org.goyo.main.domain.entity.system.SysUser;

public interface IPurOrderService {
	
	public Pager<PurOrder> findByCondition(String where,Pager pager,Object[] groupUuids) throws DBException,ServiceException; 

	public PurOrder saveOrUpdateInfo(PurOrder info,Object[] uuids,SysUser user) throws DBException,ServiceException;
	
	public List<PurOrderEntry> findByParentId(String parentId) throws DBException,ServiceException;
	
	public void delByUuids(Object[] uuids) throws DBException,ServiceException;
	
	public PurOrder submitByUuids(Object[] uuids,SysUser user) throws DBException,ServiceException;
	
	public PurOrder auditByUuids(Object[] uuids,SysUser user) throws DBException,ServiceException;

	public PurOrder unAuditByUuids(Object[] uuids,SysUser user) throws DBException,ServiceException;

	public PurOrder findByUuuid(String uuid)  throws DBException,ServiceException;
	
	public Pager<SaleOrderEntry> findByEntryCondition(String where,Pager pager) throws DBException,ServiceException; 


}
